package com.dbh.algorithm.future.jdk;

import java.util.concurrent.Callable;

/**
 *  数据模型
 *
 * @author dongbanghui
 * @date 2018/06/26
 */
public class RealData implements Callable<String> {

    private String para;

    public RealData(String para){
        this.para = para;
    }

    @Override
    public String call() throws Exception {
        StringBuffer sb = new StringBuffer();
        for (int i=0;i<10;i++){
            sb.append(para);
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
            }
        }
        return sb.toString();
    }
}
